<%= header %>
<%= boomerangScript %>
<base href="/pages/05-angular/27-route-change-back.html" />
<script src="../../vendor/angular/angular.js"></script>
<script src="../../vendor/angular-resource/angular-resource.js"></script>
<script src="../../vendor/angular-route/angular-route.js"></script>
<script>
window.angular_imgs = [3000];

window.angular_html5_mode = true;

// view a widget then come back using history.back after 2nd beacon
window.angular_nav_routes = ["/widgets/1"];
</script>
<script src="support/app.js"></script>
<div ng-app="app">
	<div ng-view>
	</div>
</div>
<script src="/test-templates/spa/04-route-change.js" type="text/javascript"></script>
<script src="27-route-change-back.js" type="text/javascript"></script>
<script>
var beaconNum = 0;
BOOMR.subscribe("beacon", function() {
	if (!BOOMR.plugins.AutoXHR) {
		return;
	}

	beaconNum++;
	if (beaconNum === 2) {
		setTimeout(function() {
			window.history.back();
		}, 200);
	}
});

BOOMR_test.init({
	testAfterOnBeacon: BOOMR.plugins.AutoXHR ? 3 : 1,
	Angular: {
		enabled: true
	},
	instrument_xhr: true,
	autorun: false
});
</script>
<%= footer %>
